package com.lagou.goods.service.impl;

import com.lagou.common.pojo.Products;
import com.lagou.goods.mapper.ProductsMapper;
import com.lagou.goods.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductsServiceImpl implements ProductsService {
    @Autowired
    private ProductsMapper productsMapper;

    @Override
    public int insert(Products products) {
        return productsMapper.insert(products);
    }

    @Override
    public Products selectById(Integer id) {
        return productsMapper.selectById(id);
    }

}
